package cn.edu.neusoft.myappos.Activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

import androidx.appcompat.app.AppCompatActivity;

import cn.edu.neusoft.myappos.R;

public class StudentMainActivity extends AppCompatActivity {

    private Button bt_myzone,         //评论
            bt_comment,
            bt_break,
            bt_course;             //课程
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.stdent_mian_activity);
        init();
    }
    private void init() {
        //我的课程
        bt_course = findViewById(R.id.button9);
        //我的空间
        bt_myzone = findViewById(R.id.button10);
        //我的评价
        bt_comment = findViewById(R.id.button11);

        bt_break = findViewById(R.id.button13);

        bt_course.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.StudentMainActivity.this,Main1CourseActivity.class);
                startActivity(intent);
            }
        });

        bt_myzone.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.StudentMainActivity.this, StudentZoneActivity.class);
                startActivity(intent);
            }
        });

        bt_comment.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.StudentMainActivity.this, StudentCommentActivity.class);
                startActivity(intent);
            }
        });
        bt_break.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent = new Intent(cn.edu.neusoft.myappos.Activity.StudentMainActivity.this, FristActivity.class);
                startActivity(intent);
            }
        });
    }
}
